package com.ruizhong.centercontroll.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruizhong.centercontroll.dao.TPermissionMapper;
import com.ruizhong.centercontroll.entity.TPermission;
import com.ruizhong.centercontroll.service.TPermissionService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Set;

@Service
public class TPermissionServiceImpl extends ServiceImpl<TPermissionMapper, TPermission> implements TPermissionService {
    @Override
    public List<TPermission> getPermissionsByIds(Set<Integer> permissionIds) {
        List<TPermission> list = lambdaQuery()
                .in(TPermission::getId, permissionIds)
                .list();
        return list;
    }
}
